package com.java.dao;

import com.java.model.Advertiser;
import com.java.model.Finance;
import com.java.model.Result;

import java.util.List;
import java.util.Map;

public interface AdvertiserMapper {
     List<Advertiser> list(Advertiser advertiser);

     Result detail(Advertiser advertiser);

     Advertiser get(int id);

     void remove(int id);

     /**
      * 余额
      * @param finance
      * @return
      */
     List<Finance> fList(Finance finance);

     Result fDetail(Advertiser advertiser);

     /**
      * 个人余额查询
      * @param advertiser
      * @return
      */
     Advertiser bList(Advertiser advertiser);

     /**
      * 个人余额充值
      * @param map
      * @return
      */
     void cList(Map<String, Object> map);

     /**
      * 个人余额充值
      * @param map
      * @return
      */
     void dList(Map<String, Object> map);

     /**
      * 广告主用户数量
      */
     List<Advertiser> advertisersCount();

}
